package com.hangxintong.common.base.entity;

import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table
@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"})//解决NULL转JSON的问题
@Where(clause = "is_delete = 0")
@NoArgsConstructor
@AllArgsConstructor
public class LmUserRelation extends BaseJpaModel {

    private String username;
    private String mobile;
    private Integer companyId;
    private int isDefault;
    private String job;
    private String jobCate = "3";
    private String companyName;
    private String companyLogo;
    private String face;
    private Integer type;
    private int status = 1;
    private int isJoin = 1;
    private int joinType;
    private Integer createId;
    private String createTime;
    private String updateTime;
    private String deleteTime;
    private String jobTime;
    private Integer userId;
    private String remark;
    private String departmentName;
    private String departmentId;
    private int isDelete;
    private String isManage;   //  权限  role表的id
}
